17. Logical Operators

Logical Operators

Complete if statement in Java code

This code assumes that age and isStudent have both been declared and initialized to have some value.

Here is the complete if statement that checks if someone's age is less-than or equal to 15 OR greater-than 60 OR if they are a student, and if any of those conditions are met, then they get a discounted ticket price = $5.

if statement